from machine.tester import write_and_read_lines
import pytest
import sys

sys.path.append("..")


@pytest.mark.asyncio
async def test_message():
    expected_output = "Привет, бауманец!"
    input_str = "\n"
    received_output = await write_and_read_lines(input_str)
    assert received_output == expected_output
